/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package sensorgui;

import java.awt.BasicStroke;
import java.awt.Graphics;
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.Stroke;
import java.awt.geom.Rectangle2D;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
import java.awt.geom.Ellipse2D;

/**
 *
 * @author Conor
 */
public class SensableObjectView{

    private SensableObject sensableObject;
    
    private Rectangle2D rect1;
    Point2D centerPoint;

    public SensableObjectView(SensableObject sensObject){
        this.sensableObject = sensObject;
        centerPoint = new Point2D.Double(sensableObject.getxPos(),sensableObject.getyPos());

        rect1 = new Rectangle2D.Double();
        
        rect1.add(centerPoint);
        
    }
    
    public void paintSensor(Graphics g){

        Graphics2D g2d = (Graphics2D)g;

        g2d.setColor(Color.BLACK);

        g2d.fill(rect1);
        g2d.draw(rect1);
    }
    
}
